package IViews;

import java.awt.Color;
import javax.swing.JLabel;

public class IBackground extends JLabel{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private final static int maxBackgrounds = 3;
	
	public IBackground(int x, int y, int width, int height, int backgroundNumber){
		this.setBounds(x, y, width, height);
		this.setIcon(IViewConsts.loadImageAndResize("background_"+(backgroundNumber % maxBackgrounds)+".png", width, height));
	}
	
	public IBackground(int x, int y, int width, int height, Color color) {
		// TODO Auto-generated constructor stub
		this.setBounds(x, y, width, height);
		this.setBackground(color);
		this.setForeground(color);
		this.setOpaque(false);
	}
}
